package day240525.wrapper_class_demo;

public class StringTest {
    @SuppressWarnings({"all"})
    public static void main(String[] args) {
        //Q1
        String s1=new String("xyz");
        String s2=new String("xyz");
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));
        //Q2
        String s3="xyz";
        String s4="xyz";
        System.out.println(s3==s4);
    }
}
